package city.spring.modules.medicalstation.doctorsOrderItem.repository;

import city.spring.modules.medicalstation.doctorsOrderItem.entity.DoctorsOrderItemEntity;
import city.spring.modules.medicalstation.doctorsOrderItem.vo.DoctorsOrderItemVO;
import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.core.toolkit.Constants;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * 存储库：医嘱项目
 *
 * @author 谢金婷
 * @date 2020-10-29 10:57:28
 */
@Repository
public interface DoctorsOrderItemRepository extends BaseMapper<DoctorsOrderItemEntity> {
    IPage<DoctorsOrderItemVO> listPage(Page<? extends DoctorsOrderItemEntity> page, @Param(Constants.WRAPPER) Wrapper<? extends DoctorsOrderItemEntity> wrapper);

    IPage<DoctorsOrderItemVO> druglistPage(Page<? extends DoctorsOrderItemEntity> page, @Param(Constants.WRAPPER) Wrapper<? extends DoctorsOrderItemEntity> wrapper);

    List<DoctorsOrderItemEntity> getByType(@Param("type") String type);
}